package com.fqxiny.picture.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fqxiny.picture.dto.user.UserLoginRequest;
import com.fqxiny.picture.dto.user.UserQueryRequest;
import com.fqxiny.picture.dto.user.UserRegisterRequest;
import com.fqxiny.picture.vo.LoginUserVO;
import com.fqxiny.picture.vo.UserVO;
import com.fqxiny.picture.model.entity.User;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;


/**
* @author 25312
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2025-04-02 14:30:07
*/
public interface UserService extends IService<User> {
    Long userRegister(UserRegisterRequest userRegisterRequest);

    LoginUserVO userLogin(UserLoginRequest userLoginRequest, HttpServletRequest request);

    User getLoginUser(HttpServletRequest request);

    LoginUserVO getLoginUserVO(User user);

    boolean userLogout(HttpServletRequest request);

    UserVO getUserVO(User user);

    List<UserVO> getUserVOList(List<User> userList);

    QueryWrapper<User> getQueryWrapper(UserQueryRequest userQueryRequest);

    boolean isAdmin(User user);

}
